<template>
  <div class="shangList">
    <div class="hasNodata" v-if="reportList.length==0 && noData && !waitNum">
      <div class="text">您还没有数据哦！</div>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
import { ref, reactive } from 'vue'
import * as API from '../axios/api'
import {http} from "@/axios/http";
// import question from "@/views/shang/question.vue";
// import support from "@/components/support.vue";
// import dragLetMeTry from "@/components/dragLetMeTry.vue";
// import vueScroll from 'vuescroll'
let listTimer = null
let ops = {
  vueScroll: {
    mode: 'native',
    sizeStrategy: 'percent',
    detectResize: true,
    // mode: 'slide',
    // pushLoad: {
    //   enable: true,
    //   auto: true,
    //   autoLoadDistance: 10
    // }
  },
  scrollPanel: {},
  rail: {
    background: 'rgba(255,255,255,0)',
    opacity: '0',
    border: 'none',
    size: '0'
  },
  bar: {
    size: '0px',
    background: 'rgba(255,255,255,0)',
    keepShow: false
  }
}
export default {
  setup() {
    const option = reactive(ops)
    let reportList = reactive([])
    let noData = ref(false)
    let waitNum = ref('')

    console.log('---this', this)

    return {
      option,
      reportList,
      noData,
      waitNum
    }
  }
}
</script>
<style lang="scss" scoped>
.shangList {
  height: 100%;
  background-color: #202546;
  position: relative;
  padding: 10px 15px 0;
  .noMoreData{
    height: 50px;
  }
  .reportLiOne {
    width: 100%;
    padding: 37px;
    height: 85px;
    background: rgba(29, 232, 195, 0.2);
    border-radius: 8px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: #2BFDB8;
    line-height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;

    .imgIcon {
      width: 28px;
      height: 28px;
      margin-right: 10px;
      margin-left: 47px;
    }

    .progress {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 5px;
      background: #2BFDB8;
      border-radius: 7px;
      animation: loading 3s linear infinite;
    }
  }

  @keyframes loading {
    0% {
      width: 0%;
    }
    100% {
      width: 100%;
    }
  }

  .surpport {
    position: absolute;
    width: 100%;
    bottom: 5px;
  }

  .mb {
    margin-bottom: 10px;
  }

  .hasNodata {
    text-align: center;
    padding-top: 80px;
    font-size: 0;

    .nodataImg {
      width: 294px;
      height: 216px;
    }

    .text {
      color: rgba(255, 255, 255, 0.8);
      font-size: 16px;
    }
  }

  .card {
    background: #2B3054;
    border-radius: 10px;
    position: relative;
    padding: 15px 15px 15px 20px;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);

    .grey {
      color: #ACB5BC;
    }

    .name {
      font-size: 18px;
      font-weight: bold;
      color: #fff;
      margin-bottom: 5px;
    }

    .type {
      font-size: 14px;
      margin-top: 4px;
      margin-bottom: 2px;
    }

    .gender {
      font-size: 14px;
    }

    .showMore {
      position: absolute;
      right: 15px;
      top: 20px;
      font-size: 12px;
      color: rgba(43, 253, 184, 1);
      display: flex;
      flex-direction: row;
      align-items: center;

      .van-icon {
        font-size: 12px;
        font-weight: bold;
        margin-left: 6px;
        color: rgba(43, 253, 184, .5);
      }
    }
  }



  .markBody {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);

    .maekContent {
      color: #ffffff;
      width: 315px;
      height: 190px;
      border-radius: 10px;
      position: relative;
      padding: 40px 20px 30px;
      margin: 190px auto 0;
      overflow: hidden;
      background-size: 70px 190px;
      background-position: left top;
      background-color: #373D67;

      .topText {
        font-size: 15px;
        line-height: 26px;
        text-align: left;
        display: flex;
        color: rgba(255, 255, 255, 0.7);

        .iconImg {
          vertical-align: middle;
          width: 35px;
          height: 40px;
          margin-right: 10px;
        }
      }

      .bottomBtn {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 20px;
        color: #ffffff;

        .bt {
          font-weight: 500;
          font-size: 18px;
          height: 40px;
          line-height: 40px;
          text-align: center;
          border-radius: 20px;
        }

        .no {
          width: 100px;
          background-color: #5A6299;
        }

        .yes {
          background-color: #12CD8F;
          margin-left: 20px;
          width: 155px;
        }
      }
    }
  }
}
</style>
